package com.sys.sprinngboot.goodtheater;

import lombok.extern.slf4j.Slf4j;
import org.apache.ibatis.annotations.Mapper;
import org.apache.log4j.Logger;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@Slf4j
@MapperScan(value = "com.sys.sprinngboot.goodtheater.dao")
@SpringBootApplication
public class GoodtheaterApplication {

    private static Logger logger = Logger.getLogger(GoodtheaterApplication.class);

    public static void main(String[] args) {

        SpringApplication.run(GoodtheaterApplication.class, args);

        // 记录debug级别的信息
        logger.debug("This is debug message.");
        // 记录info级别的信息
        logger.info("This is info message.");
        // 记录error级别的信息
        logger.error("This is error message.");

    }

}
